package qeb.handheldmedical.helper;

import com.lzy.okgo.OkGo;

import android.app.Application;
import android.content.Intent;

/**
 * @author 作者(dugaoyi) E-mail:dugaoyi@163.com
 * @version 创建时间：2016年10月23日 上午11:45:23
 * @declaration
 */
public class MaterApp extends Application {
	private static MaterApp instance;
	private Intent first = null;
	private Intent second = null;
	private Intent third = null;

	public static MaterApp getInstance() {
		return instance;
	}

	@Override
	public void onCreate() {
		// TODO Auto-generated method stub
		instance = this;
		super.onCreate();

		OkGo.init(this);

		CrashHandler catchHandler = CrashHandler.getInstance();
		catchHandler.init(this);
	}

	/**
	 * 获取first
	 * 
	 * @return the first
	 */
	public Intent getFirst() {
		return first;
	}

	/**
	 * 设置first
	 * 
	 * @param first
	 *            the first to set
	 */
	public void setFirst(Intent first) {
		this.first = first;
	}

	/**
	 * 获取second
	 * 
	 * @return the second
	 */
	public Intent getSecond() {
		return second;
	}

	/**
	 * 设置second
	 * 
	 * @param second
	 *            the second to set
	 */
	public void setSecond(Intent second) {
		this.second = second;
	}

	/**
	 * 获取third
	 * 
	 * @return the third
	 */
	public Intent getThird() {
		return third;
	}

	/**
	 * 设置third
	 * 
	 * @param third
	 *            the third to set
	 */
	public void setThird(Intent third) {
		this.third = third;
	}

	/**
	 * 设置instance
	 * 
	 * @param instance
	 *            the instance to set
	 */
	public static void setInstance(MaterApp instance) {
		MaterApp.instance = instance;
	}
}
